﻿using MetroGS.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MetroGS.Pages
{
    public partial class UCAppearance : UserControl
    {
        public UCAppearance()
        {
            InitializeComponent();
            this.DataContext = new SettingsAppearance();
        }

        private void cb_full_Checked(object sender, RoutedEventArgs e)
        {
            Settings.Default.fulloption = "on";
            Properties.Settings.Default.Save();
        }

        private void cb_full_Unchecked(object sender, RoutedEventArgs e)
        {
            Settings.Default.fulloption = "off";
            Properties.Settings.Default.Save();
        }

        private void uc_apparence_Loaded(object sender, RoutedEventArgs e)
        {
            if(Settings.Default.fulloption == "on")
                {
                    cb_full.IsChecked = true;
                }
        }
    }
}
